// test_scripts/prepare_upgrade.js
async function main() {
    const proxyAddress = '0x95526160366B53ccdeF89bb8d32E89348007E047';

    const BBoxSwapV2 = await ethers.getContractFactory("BBoxSwap");
    const box = await upgrades.upgradeProxy(proxyAddress, BBoxSwapV2);
    console.log("BBoxSwap upgraded address:", box.address);
}

main()
    .then(() => process.exit(0))
    .catch(error => {
        console.error(error);
        process.exit(1);
    });